/**
 * 
 */
package com.thor.palmmall.spi.sales.input;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.commons.exception.ThorServiceException;
import com.thor.palmmall.spi.common.SOperateInfo;
import com.thor.palmmall.spi.common.SQueryResult;
import com.thor.palmmall.spi.common.SResponse;
import com.thor.palmmall.spi.common.SUserGroupLoadParam;

/**
 * @author NuoSa
 *
 * @since 1.0
 */
@Path("/1/sales-input")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface SSalesInputService {

  @POST
  @Path(value = "/create")
  SResponse<String> create(SSalesInput4Create salesInput, @QueryParam("") SOperateInfo operateInfo);

  @POST
  @Path(value = "/save")
  SResponse<String> save(SSalesInput salesInput, @QueryParam("") SOperateInfo operateInfo);

  @POST
  @Path(value = "/{id}")
  SResponse<SSalesInput> get(@PathParam("id") String id, SUserGroupLoadParam param)
      throws ThorServiceException;

  @POST
  @Path(value = "/sales-total")
  SResponse<List<SSalesTotalData>> getSalesTotal(SSalesInputCondition condition);

  @POST
  @Path(value = "/query")
  SResponse<SQueryResult<SSalesInput>> query(SSalesInputQueryParam param);
}
